#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestSquare.h"

static struct TESTCASE_TestSquare_getArea_test_49
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_getArea_test_49()
      : TESTNGPP_NS::TestCase
        ( "Area of valid Square should be right"
        , "Square_getArea"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 49)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_getArea();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_getArea*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_49()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_getArea* belongedFixture;
} testcase_instance_TestSquare_getArea_test_49 ;



static struct TESTCASE_TestSquare_getArea_test_57
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_getArea_test_57()
      : TESTNGPP_NS::TestCase
        ( "Area of invalid Square should be 0"
        , "Square_getArea"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 57)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_getArea();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_getArea*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_57()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_getArea* belongedFixture;
} testcase_instance_TestSquare_getArea_test_57 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestSquare_getArea[] = {
&testcase_instance_TestSquare_getArea_test_49,
&testcase_instance_TestSquare_getArea_test_57,
0
};




static struct TESTCASE_TestSquare_getPerimeter_test_83
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_getPerimeter_test_83()
      : TESTNGPP_NS::TestCase
        ( "Perimeter of valid Square should be right"
        , "Square_getPerimeter"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 83)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_getPerimeter();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_getPerimeter*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_83()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_getPerimeter* belongedFixture;
} testcase_instance_TestSquare_getPerimeter_test_83 ;



static struct TESTCASE_TestSquare_getPerimeter_test_91
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_getPerimeter_test_91()
      : TESTNGPP_NS::TestCase
        ( "Perimeter of invalid Square should be 0"
        , "Square_getPerimeter"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 91)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_getPerimeter();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_getPerimeter*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_91()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_getPerimeter* belongedFixture;
} testcase_instance_TestSquare_getPerimeter_test_91 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestSquare_getPerimeter[] = {
&testcase_instance_TestSquare_getPerimeter_test_83,
&testcase_instance_TestSquare_getPerimeter_test_91,
0
};




static struct TESTCASE_TestSquare_isValid_test_118
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_isValid_test_118()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Square should be true"
        , "Square_isValid"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 118)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_isValid();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_isValid*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_118()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_isValid* belongedFixture;
} testcase_instance_TestSquare_isValid_test_118 ;



static struct TESTCASE_TestSquare_isValid_test_126
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_isValid_test_126()
      : TESTNGPP_NS::TestCase
        ( "isValid of invalid Square should be false"
        , "Square_isValid"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 126)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_isValid();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_isValid*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_126()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_isValid* belongedFixture;
} testcase_instance_TestSquare_isValid_test_126 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestSquare_isValid[] = {
&testcase_instance_TestSquare_isValid_test_118,
&testcase_instance_TestSquare_isValid_test_126,
0
};




static struct TESTCASE_TestSquare_changeWidth_test_146
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_changeWidth_test_146()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Square should be true"
        , "Square_changeWidth"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 146)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_changeWidth();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_changeWidth*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_146()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_changeWidth* belongedFixture;
} testcase_instance_TestSquare_changeWidth_test_146 ;



static struct TESTCASE_TestSquare_changeWidth_test_162
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_changeWidth_test_162()
      : TESTNGPP_NS::TestCase
        ( "isValid of valid Square should be true"
        , "Square_changeWidth"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 162)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare_changeWidth();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare_changeWidth*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_162()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare_changeWidth* belongedFixture;
} testcase_instance_TestSquare_changeWidth_test_162 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestSquare_changeWidth[] = {
&testcase_instance_TestSquare_changeWidth_test_146,
&testcase_instance_TestSquare_changeWidth_test_162,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestSquare_getArea
   ( "Square_getArea"
   , "TestSquare.h"
   , g_TESTCASEARRAY_TestSquare_getArea
   , (sizeof(g_TESTCASEARRAY_TestSquare_getArea)/sizeof(g_TESTCASEARRAY_TestSquare_getArea[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestSquare_getPerimeter
   ( "Square_getPerimeter"
   , "TestSquare.h"
   , g_TESTCASEARRAY_TestSquare_getPerimeter
   , (sizeof(g_TESTCASEARRAY_TestSquare_getPerimeter)/sizeof(g_TESTCASEARRAY_TestSquare_getPerimeter[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestSquare_isValid
   ( "Square_isValid"
   , "TestSquare.h"
   , g_TESTCASEARRAY_TestSquare_isValid
   , (sizeof(g_TESTCASEARRAY_TestSquare_isValid)/sizeof(g_TESTCASEARRAY_TestSquare_isValid[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestSquare_changeWidth
   ( "Square_changeWidth"
   , "TestSquare.h"
   , g_TESTCASEARRAY_TestSquare_changeWidth
   , (sizeof(g_TESTCASEARRAY_TestSquare_changeWidth)/sizeof(g_TESTCASEARRAY_TestSquare_changeWidth[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestSquare[] = {
&test_fixture_desc_instance_TestSquare_getArea,
&test_fixture_desc_instance_TestSquare_getPerimeter,
&test_fixture_desc_instance_TestSquare_isValid,
&test_fixture_desc_instance_TestSquare_changeWidth,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestSquare
   ( "TestSquare"
   , array_of_fixture_desc_TestSquare
   , (sizeof(array_of_fixture_desc_TestSquare)/sizeof(array_of_fixture_desc_TestSquare[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestSquare;
}


